home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SCI Games E3 2005 Press Kit (USA)
/
SCI Games E3 2005 Press Kit (USA).bin
/
runme_mac.swf
/
scripts
/
__Packages
/
mx
/
controls
/
streamingmedia
/
FullScreenToggleControl.as
< prev
next >
Wrap
Text File
|
2005-05-05
|
1KB
|
53 lines
class mx.controls.streamingmedia.FullScreenToggleControl extends MovieClip
{
function FullScreenToggleControl()
{
super();
this.init();
}
function init()
{
this.toggle = this._parent;
this.setEnabled(this.toggle.getEnabled());
}
function handleRollOver()
{
this.getController().setNotAnimating(true);
}
function handleRollOut()
{
this.getController().setNotAnimating(false);
}
function handleRelease()
{
this.toggle.toggleDisplay();
}
function getController()
{
return this.toggle.getPlayer().getController();
}
function getEnabled()
{
return this._enabled;
}
function setEnabled(is)
{
mx.controls.streamingmedia.Tracer.trace("FullScreenToggleControl.setEnabled: " + is);
this._enabled = is;
if(is)
{
this.onRollOver = this.handleRollOver;
this.onRollOut = this.handleRollOut;
this.onRelease = this.handleRelease;
this.gotoAndStop("_up");
}
else
{
delete this.onRollOver;
delete this.onRollOut;
delete this.onRelease;
this.gotoAndStop("_disabled");
}
}
}